/**
 * Copyright (C), 2015-2018, 成都启迪信息技术有限公司
 * FileName: KernelSubmitRespLogs
 * Author:   sjkyll
 * Date:     2018-11-30 10:29
 * Description:
 * <author>          <time>          <version>          <desc>
 * 作者姓名         修改时间           版本号            描述
 */
package com.cdqidi.smsservice.domain;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Objects;

/**
 * 〈一句话功能简述〉<br> 
 *
 * @author sjkyll
 * @create 2018-11-30 10:29
 * @since 1.0.0
 */
@Entity
@Table(name = "kernel_submit_resp_logs", schema = "smapp")
public class KernelSubmitRespLogs {

    private String autoSn;
    private Integer sequenceId;
    private Long smId;
    private Timestamp createTime;
    private int submit;
    private String respId;


    @Id
    @Column(name = "AUTO_SN")
    public String getAutoSn() {
        return autoSn;
    }

    public void setAutoSn(String autoSn) {
        this.autoSn = autoSn;
    }

    @Basic
    @Column(name = "SEQUENCE_ID")
    public Integer getSequenceId() {
        return sequenceId;
    }

    public void setSequenceId(Integer sequenceId) {
        this.sequenceId = sequenceId;
    }

    @Basic
    @Column(name = "SM_ID")
    public Long getSmId() {
        return smId;
    }

    public void setSmId(Long smId) {
        this.smId = smId;
    }

    @Basic
    @Column(name = "CREATE_TIME")
    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "SUBMIT")
    public int getSubmit() {
        return submit;
    }

    public void setSubmit(int submit) {
        this.submit = submit;
    }

    @Basic
    @Column(name = "RESP_ID")
    public String getRespId() {
        return respId;
    }

    public void setRespId(String respId) {
        this.respId = respId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        KernelSubmitRespLogs that = (KernelSubmitRespLogs) o;
        return submit == that.submit &&
                Objects.equals(autoSn, that.autoSn) &&
                Objects.equals(sequenceId, that.sequenceId) &&
                Objects.equals(smId, that.smId) &&
                Objects.equals(createTime, that.createTime) &&
                Objects.equals(respId, that.respId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(autoSn, sequenceId, smId, createTime, submit, respId);
    }
}